import {
	request
} from '@/util/api.js'

// 消息中心
export const messageIndex = (data) => {
	return request({
		url: 'api/Message/index',
		method: 'post',
		data
	})
}

// 消息列表
export const messageList = (data) => {
	return request({
		url: 'api/Message/list',
		method: 'post',
		data
	})
}

// 消息详情
export const messageDetails = (data) => {
	return request({
		url: 'api/Message/details',
		method: 'post',
		data
	})
}

// 申请关联企业审核处理
export const messageEnterpriseUp = (data) => {
	return request({
		url: 'api/Message/enterprise_up',
		method: 'post',
		data
	})
}

// 删除消息
export const messageDelete = (data) => {
	return request({
		url: 'api/Message/delete',
		method: 'post',
		data
	})
}

// 消息推送
export const messageActivity = (data) => {
	return request({
		url: 'api/Message/activity',
		method: 'post',
		data
	})
}

// 如果用户中控修改过用户名或者密码，则需要重新登录
export const userContrast = (data) => {
	return request({
		url: 'api/user/contrast',
		method: 'post',
		data
	})
}
